﻿using System;

namespace AbpMediatrDemo
{
    using Abp;
    using MediatR;

    class Program
    {
        static void Main(string[] args)
        {
            var abpBoot = AbpBootstrapper.Create<AbpMediatrDemoModule>();
            abpBoot.Initialize();

            var mediator = abpBoot.IocManager.Resolve<IMediator>();

            var t1 = mediator.Send(new PingCommand());
            /*

                        var commandBus = abpBoot.IocManager.Resolve<ICommandBus>();
                        var t1=commandBus
            */
            Console.WriteLine(t1.Result.Message);


            Console.WriteLine("输入任意键返回...");
            Console.ReadKey(true);
        }
    }
}
